package com.example.demo.es.controller;

import com.example.demo.es.service.EsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/es")
public class EsController {

    @Autowired
    private EsService esService;

    @GetMapping("/save")
    public void save() {
        esService.saveRestSingle();
    }

    @GetMapping("/delete")
    public void delete() {
        esService.delete();
    }

    @GetMapping("/update")
    public void update() {
    }

    @GetMapping("/find")
    public void find() {
        esService.find();
    }

    @GetMapping("/findList")
    public void findList() {
        esService.findList();
    }


}
